package app.test;

import android.graphics.BitmapFactory;
import android.widget.ImageView;
import android.widget.LinearLayout;
import app.test.IWndMng.STAGE_E;

public class window_logo extends window {
	@Override
	public void active() {
		
		LinearLayout layout = (LinearLayout) m_inflater.inflate(R.layout.image,null).findViewById(R.id.imagelayout);
		ImageView lv = (ImageView) layout.getChildAt(0);
		lv.setImageBitmap(BitmapFactory.decodeResource(m_resources,R.drawable.ic_logo));
		m_layout_full.removeAllViews();
		m_layout_full.addView(layout);
		lv.invalidate();
		m_timeout_ticks = 3;
	}
	@Override
	public void timer_mng()
	{
		m_start_ticks++;
		if(m_timeout_ticks!=-1)
		{
			if(m_start_ticks>m_timeout_ticks)
			{
				m_timeout_ticks = -1;
				m_manager.change_stage(STAGE_E.STAGE_MAIN);
			}
		}
	}



}
